package com.bwie.controller;

import com.bwie.pojo.Pay;
import com.bwie.service.PayService;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lenovo
 */
@RestController
@RequestMapping("/pay")
public class PayController {

    @Autowired
    private PayService payService;

    @PostMapping("payWay/{pay}")
    public R payWay(@RequestBody Pay pay){
        return payService.payWay(pay);
    }
}
